import { createApp } from 'vue'
import store from './stores'

import App from './App.vue'
import router from './router'
const app = createApp(App)

// mark
import 'virtual:svg-icons-register'
// 样式全局使用
import 'vant/lib/index.css'

import './styles/main.scss'
app.use(store)
app.use(router)
app.mount('#app')

// 联合类型,类型本身没有值
// type Gender = '男' | '女'

// const g: Gender = '女'

// 枚举 有值的
enum ConsultType {
  doc = 1,
  fast = 2,
  medic = 3
}
console.log(ConsultType.fast)
// JIUZHENLEIXING.JSWZ <=== 2
// add({ type: ConsultType.doc })

type Person = {
  id: string
  name: string
  list: { goodId: string }[]
}

type NewList = Pick<Person, 'name' | 'list'>

type NewPerson = Partial<Person>

const p: NewPerson = { name: '小花' }
